﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>

    <div id="result"></div>  

    <script type="text/javascript" src="ajax.js"></script>


    <script type="text/javascript">
        // Make an ajax call to HelloWorld.ashx handler
        // You will receive the data from server in the 
        // data parameter of callback function
        ajax.get("HelloWorld.ashx", function (data) {

            // get the div element
            var resultDiv = document.getElementById('result');

            // put the data in the div
            resultDiv.innerHTML = data;

        });
    </script>

</body>
</html>
